<?php

/**
 * /stat actions.
 *
 * @package    jobbit
 * @subpackage /stat
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class statActions extends sfActions
{
	
	public function executeUpdate(sfWebRequest $request)
	{
		$this->form = new statForm();
		
		if($request->isMethod(sfRequest::POST))
		{
	    // Get comment list
	    Doctrine::getTable('stat')->refreshStatistic();			
		
			$this->redirect('@homepage?module=post&action=index');
		}
		$this->setTemplate('update');
	}
}
